import http from "../../utils/http";

//配送员
 interface courieritemd{
  _id?: string;
  name?: string;
  avatar?: string;
  phone?: string;
  state?: number;
}





const couriers={
    search:(data?:pagequery)=>{
        //http.post('/couriers/search)发送请求
        //return:将请求结果返回出去
      return  http.post('/couriers/search',data)
    },
    
    // 新增用户分组数据
    add: (data: courieritemd) => http.post('/couriers/add', data),
  // 删除用户分组数据
    remove: (data:deleteparams ) => http.delete('/couriers/remove',data),
 // 修改用户分组数据
 update: (data: courieritemd) => http.put('/couriers/update', data)

}

//暴露
export default couriers